package com.example.hy2110szyx.service;

import com.example.hy2110szyx.entity.Distribution;
import com.example.hy2110szyx.entity.FlightInfo;
import com.example.hy2110szyx.vo.PageVo;
import com.github.pagehelper.Page;

import java.util.List;

public interface DistributionService {

    /**
     * 根据航班编号fno查询航班舱位
     * @param fno
     * @return
     */
    Distribution queryByFno(String fno);

    /**
     * 分页查询
     * @param pageVo
     * @return
     */

    Page<Distribution> queryAllDisForPage(PageVo<Distribution> pageVo);


    void insertOneDistribution(Distribution distribution);


    void updateOneDistribution(Distribution distribution);

    /**
     * 根据id批量删除航班舱位
     * @param ids
     */
    void deleteSomeById(Integer[] ids);

}
